package com.ruoyi.commerce.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;
import java.util.List;


/**
 * 采购单视图对象 commerce_purchase
 *
 * @author ruoyi
 * @date 2024-01-15
 */
@Data
@ExcelIgnoreUnannotated
public class CommercePurchaseVo {

    private static final long serialVersionUID = 1L;

    /**
     * 采购单id
     */
    @ExcelProperty(value = "采购单id")
    private Long purchaseId;

    /**
     * 采购日期
     */
    @ExcelProperty(value = "采购日期")
    private Date orderDate;

    /**
     * 到货日期
     */
    @ExcelProperty(value = "到货日期")
    private Date arrivalDate;

    /**
     * 采购总积分
     */
    @ExcelProperty(value = "采购总积分")
    private BigDecimal totalAmount;

    /**
     * 采购状态
     */
    @ExcelProperty(value = "采购状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "commerce_purchase_status")
    private String status;

    /**
     * 订单列表
     */
    private List<CommerceOrdersVo> ordersVoList;

}
